<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

require_once('ProcessMultipleItems.php');

class ProcessMultipleImages extends ProcessMultipleItems{
	function ProcessMultipleImages( &$p ){
		parent::ProcessMultipleItems($p);
		$this->ci->load->model('RelatedImages_model');
		if( isset($p['relational_fields']) ){
			$rf =& $p['relational_fields'];
			if( is_array($rf) && count($rf) == 2){
				$this->ci->RelatedImages_model->setRelationalFields($rf[0], $rf[1]);
			}
		}
		$this->ci->RelatedImages_model->setSelectField('image_selected');
		$this->ci->RelatedImages_model->setOptionField('image_path');
		$this->model = $this->ci->RelatedImages_model;
	}
}

?>